
export const focus = {
  inserted: function(dom, options) {
    dom.focus()
  }
}

export const imgerror = {
  inserted: function(dom, options) {
    console.log(dom, 'domssssssss')
    dom.onerror = function() {
      console.log('图片加载失败')
      dom.src = options.value
    }
  }
}
